package com.hwhhhh.graduationproject.service;

import com.hwhhhh.graduationproject.controller.param.Lv1Req;
import com.hwhhhh.graduationproject.controller.param.Lv2Req;
import com.hwhhhh.graduationproject.domain.dto.CommentDTO;

import java.util.List;

/**
 * @Description detail
 * Created by Hwhhhh on 2021/3/2 15:12
 */
public interface CommentService {
    List<CommentDTO> getNewLv1ByClassroomId(int classroomId, int page);

    /**
     * 发表一级评论，返回一级评论id
     * @param lv1Req
     * @return
     */
    int makeCommentLv1(Lv1Req lv1Req);

    /**
     * 发表二级评论，返回二级评论id
     * @param lv2Req
     * @return
     */
    int makeCommentLv2(Lv2Req lv2Req);

    void deleteLv1(int id);

    void deleteLv2(int id);
}
